package com.mtsmda.java7features;

public class SwitchString {

	public static void main(String[] args) {
		switchString("red");
		System.out.println("_______");
		switchString("RED");
	}

	private static void switchString(String color) {
		switch (color) {
		case "RED": {
			System.out.println("red");
			System.out.println("RED");
		}
			break;

		case "YELLOW": {
			System.out.println("yellow");
			System.out.println("YELLOW");
		}
			break;

		case "GREEN": {
			System.out.println("green");
			System.out.println("GREEN");
		}
			break;
		default: {
			System.out.println("ERROR");
			System.out.println("Not fount such color");
		}
			break;
		}

	}

}